package com.itheima.activiti.dto.business;

import com.itheima.activiti.dto.activiti.ProcessDataDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @description 请假表
 */
@Data
public class LeavesDTO extends ProcessDataDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    private String id;

    @ApiModelProperty("类型：1事假、2病假")
    private Integer type;

    @ApiModelProperty("开始时间")
    private LocalDateTime beginTime;

    @ApiModelProperty("结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty("时长")
    private BigDecimal duration;

    @ApiModelProperty("请假人名称")
    private String name;

    @ApiModelProperty("请假事由")
    private String description;

    @ApiModelProperty("撤回状态 1 展示按钮 0 不展示")
    private int recallStatus;

    @ApiModelProperty("提交状态 1 展示按钮 0 不展示")
    private int commitStatus;
}
